葫芦的运维日志
下一篇
搜索
上一篇
浏览量 4433
2019/01/06 03:11
1.下载node.js运行环境
https://nodejs.org/en/
BROWNWANG-MB0:~ wangzi$ node -v
v10.15.0
BROWNWANG-MB0:~ wangzi$ npm -v
6.4.1
2.安装初始化脚手架。
BROWNWANG-MB0:~ wangzi$ sudo npm install -global vue-cli
BROWNWANG-MB0:~ wangzi$ vue --version
2.9.6
3.创建第一个项目。
BROWNWANG-MB0:vue wangzi$ vue init webpack vue-first
? Project name vue-first
? Project description Vue first project
? Author kingsonboys <277215243@qq.com>
? Vue build standalone
? Install vue-router? No
? Use ESLint to lint your code? No
? Set up unit tests No
? Setup e2e tests with Nightwatch? No
? Should we run `npm install` for you after the project has been created? (recom
mended) npm
vue-cli · Generated "vue-first".
# Installing project dependencies ...
# ========================
4.启动项目。
BROWNWANG-MB0:vue-first wangzi$ npm run dev
> vue-first@1.0.0 dev /Users/wangzi/code/vue/vue-first
> webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
95% emitting b
DONE Compiled successfully in 2149ms 3:08:31 AM
I Your application is running here: http://localhost:8080
葫芦的运维日志
打赏
上一篇
搜索
下一篇